package com.sh.data.engine.domain.authority.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sh.data.engine.domain.authority.model.domain.MenuDomain;
import com.sh.data.engine.domain.authority.model.domain.RoleDomain;
import com.sh.data.engine.repository.dao.authority.entity.MenuEntity;

import java.util.List;
import java.util.Map;

/**
 * @author tinglan.ys @Title: @Package: @Description:
 * @date 2022/1/5 下午3:58
 */
public interface MenuService extends IService<MenuEntity> {

    /**
     * @description : 菜单列表(非全量)
     * @author : tinglan.ys
     * @date : 2022/8/15
     */
    List<MenuDomain> menuList();

    MenuDomain getMenusById(Long id);

    /**
     * @description : 查询某个用户包含的菜单
     * @author : tinglan.ys
     * @date : 2022/1/26
     */
    List<RoleDomain.SimpleMenuEntity> getMenusId(String userId);

    List<RoleDomain.SimpleMenuEntity> getMenusByRoleId(Long roleId);

    String listId();

    Map<Long, String> getMenuMapByIds(List<Long> ids);
}
